$fieldset-border-width: 2px;
$fieldset-padding: 5px;

fieldset {
  border: $fieldset-border-width solid $black;
  padding: 0 $fieldset-padding;
  margin-bottom: 1rem;
}

legend {
  text-transform: uppercase;
  background-color: $black;
  color: $white;
  font-family: $font-family-monospace;
  font-weight: 700;
  font-style: normal;
  width: auto;
  padding: 0 $fieldset-padding;
  margin-left: 0px - $fieldset-border-width - $fieldset-padding;
  float: left;
  & + * {
    clear: both;
  }
}

xmp {
  margin: 0;
}